package com.ruoyi.js.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 裁判 对象 js_judge
 * 
 * @author greejoy
 * @date 2024-10-16
 */
public class JsJudge extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 电话 */
    @Excel(name = "电话")
    private String phone;

    /** 简介 */
    @Excel(name = "简介")
    private String info;

    /** 照片 */
    @Excel(name = "照片")
    private String photo;

    /** 序号 */
    @Excel(name = "序号")
    private Long odr;

    /** 比赛ID */
    @Excel(name = "比赛ID")
    private Long matchId;

    public JsJudge(){}

    public JsJudge(Long matchId){
        this.matchId = matchId;
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setInfo(String info) 
    {
        this.info = info;
    }

    public String getInfo() 
    {
        return info;
    }
    public void setPhoto(String photo) 
    {
        this.photo = photo;
    }

    public String getPhoto() 
    {
        return photo;
    }
    public void setOdr(Long odr) 
    {
        this.odr = odr;
    }

    public Long getOdr() 
    {
        return odr;
    }
    public void setMatchId(Long matchId) 
    {
        this.matchId = matchId;
    }

    public Long getMatchId() 
    {
        return matchId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("phone", getPhone())
            .append("info", getInfo())
            .append("photo", getPhoto())
            .append("odr", getOdr())
            .append("matchId", getMatchId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }

    // 临时属性
    private Double score;
    private List<JsScore> scoreList;

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    public List<JsScore> getScoreList() {
        return scoreList;
    }

    public void setScoreList(List<JsScore> scoreList) {
        this.scoreList = scoreList;
    }
}
